const app = getApp();
Page({

  data: {
    who: '',
    hiddenTea: '',
    hiddenStu: ''

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    console.log(options)
    that.setData({
      who: options.who
    })

    if (options.who == 0) {
      that.setData({
        hiddenStu: false,
        hiddenTea: true
      })
    } else {
      that.setData({
        hiddenStu: true,
        hiddenTea: false
      })
    }

  },


  goto_studentSign: function () {
    wx.navigateTo({
      url: '../signStu/stuLesson/stuLesson',
    })
  },



  goto_teacherSign: function () {
    wx.navigateTo({
      url: '../signTea/lessonClass/lessonClass',
    })
  },


  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }

})